package com.ruoyi.procurementmanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.procurementmanagement.mapper.EsSpecificationMapper;
import com.ruoyi.procurementmanagement.domain.EsSpecification;
import com.ruoyi.procurementmanagement.service.IEsSpecificationService;

/**
 * 规格项Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-16
 */
@Service
public class EsSpecificationServiceImpl implements IEsSpecificationService 
{
    @Autowired
    private EsSpecificationMapper esSpecificationMapper;

    /**
     * 查询规格项
     * 
     * @param specId 规格项主键
     * @return 规格项
     */
    @Override
    public EsSpecification selectEsSpecificationBySpecId(Long specId)
    {
        return esSpecificationMapper.selectEsSpecificationBySpecId(specId);
    }

    /**
     * 查询规格项列表
     * 
     * @param esSpecification 规格项
     * @return 规格项
     */
    @Override
    public List<EsSpecification> selectEsSpecificationList(EsSpecification esSpecification)
    {
        return esSpecificationMapper.selectEsSpecificationList(esSpecification);
    }

    /**
     * 新增规格项
     * 
     * @param esSpecification 规格项
     * @return 结果
     */
    @Override
    public int insertEsSpecification(EsSpecification esSpecification)
    {
        return esSpecificationMapper.insertEsSpecification(esSpecification);
    }

    /**
     * 修改规格项
     * 
     * @param esSpecification 规格项
     * @return 结果
     */
    @Override
    public int updateEsSpecification(EsSpecification esSpecification)
    {
        return esSpecificationMapper.updateEsSpecification(esSpecification);
    }

    /**
     * 批量删除规格项
     * 
     * @param specIds 需要删除的规格项主键
     * @return 结果
     */
    @Override
    public int deleteEsSpecificationBySpecIds(Long[] specIds)
    {
        return esSpecificationMapper.deleteEsSpecificationBySpecIds(specIds);
    }

    /**
     * 删除规格项信息
     * 
     * @param specId 规格项主键
     * @return 结果
     */
    @Override
    public int deleteEsSpecificationBySpecId(Long specId)
    {
        return esSpecificationMapper.deleteEsSpecificationBySpecId(specId);
    }
}
